package com.code.family.service;

import com.code.family.entity.pojo.PageParamType;
import com.code.family.entity.pojo.Transactions;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TransactionsService extends IService<Transactions> {

    boolean add(Transactions transaction);

    boolean delete(int id);

//    List<Transactions> getAllTransactions();

    List<Transactions> selectById(int id);

    boolean update(Transactions transaction);

    List<Transactions> find(PageParamType param);
}
